﻿package cn.bdqn.service.finance;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.bdqn.dao.finance.FinanceMapper;
import cn.bdqn.pojo.Depatement;
import cn.bdqn.pojo.Finance;


@Service("financeService")

public class FinanceServiceImpl implements FinanceService {
	@Resource
	private FinanceMapper financemapper;
/*	@Resource
	private KaoQinMapper kaoqinmapper;
	@Resource
	private JobMapper jobmapper;*/

	@Override
	public List<Finance> getlist(String empName,Integer depId,String year,String month,Integer from,Integer pageSize) {
		// TODO Auto-generated method stub
		return financemapper.getlist(empName,depId,year,month,from,pageSize);
	}

	@Override
	public int getFinanceCount(String empName,Integer depId,String year,String month) {
		// TODO Auto-generated method stub
		return financemapper.getFinanceCount(empName,depId,year,month);
	}

	@Override
	public int delFinance(Integer id) {
		// TODO Auto-generated method stub
		return financemapper.delFinance(id);
	}

	@Override
	public List<Depatement> getDepList() {
		// TODO Auto-generated method stub
		return financemapper.getDepList();
	}


/*	@Override
	public int insertPay(Emp e, Finance f, KaoQin k) {
		
		
		
		return 0;
	}

	@Override
	public int updatePay(Finance f, KaoQin k) {
		// TODO Auto-generated method stub
		return 0;
	}*/

	
	

}
